package com.by.mapper;

import com.by.common.dao.MyBaseMapper;
import com.by.entity.Spu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface SpuMapper extends MyBaseMapper<Spu> {
    Map get(@Param("id") int id);

    List<Spu> getAll();
    //分页查询
    List<Spu> getSpus(@Param("page") int page,@Param("pageSize") int pageSize);
    //规格属性
    Map getAttr(@Param("id")int id);
}
